﻿using System;
using Telerik.Sitefinity.Social.Contracts;
namespace Telerik.Sitefinity.Social.Model
{
    /// <summary>
    /// Represents a connection between two people
    /// </summary>
    [Telerik.OpenAccess.Persistent]
    public class Connection : IConnection
    {
        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        /// <value>The id.</value>
        public Guid Id
        {
            get { return this.id; }
            set { this.id = value; }
        }

        /// <summary>
        /// Gets or sets the person1Username username.
        /// </summary>
        /// <value>The person1Username username.</value>
        public string Person1Username
        {
            get { return this.person1Username; }
            set { this.person1Username = value; }
        }

        /// <summary>
        /// Gets or sets the person2Username username.
        /// </summary>
        /// <value>The person2Username username.</value>
        public string Person2Username
        {
            get { return this.person2Username; }
            set { this.person2Username = value; }
        }

        /// <summary>
        /// Gets or sets the connection description.
        /// </summary>
        /// <value>The connection description.</value>
        public string ConnectionDescription
        {
            get { return this.connectionDescription; }
            set { this.connectionDescription = value; }
        }

        /// <summary>
        /// Gets or sets the connection date.
        /// </summary>
        /// <value>The connection date.</value>
        public DateTime ConnectionDate
        {
            get { return this.connectionDate; }
            set { this.connectionDate = value; }
        }

        private Guid id;
        private string connectionDescription;
        private DateTime connectionDate;
        private string person1Username;
        private string person2Username;
    }
}
